#include "CIcon.h"

CIcon::CIcon(): iClicked(0), CElement(){}

CIcon::CIcon(int inIClicked): iClicked(inIClicked), CElement(){}

CIcon::CIcon(vector<ALLEGRO_BITMAP*>::const_iterator begin, vector<ALLEGRO_BITMAP*>::const_iterator end, CPoint inMaCoordinate):
	iClicked(0), CElement(begin, end, inMaCoordinate){}
	

CIcon::CIcon(ALLEGRO_BITMAP* bitmapA, ALLEGRO_BITMAP* bitmapB, CPoint inMaCoordinate):
	iClicked(0), CElement(){
	arrBitmap.push_back(al_clone_bitmap(bitmapA));
	arrBitmap.push_back(al_clone_bitmap(bitmapB));
	SetMaCoordinate(inMaCoordinate);
}

int CIcon::GetIClicked(){
	return iClicked;
}

void CIcon::SetIClicked(int inIClicked){
	iClicked = inIClicked;
}

void CIcon::Swtich(){
	iClicked = !iClicked;
	SetArrBitmapItor(!GetArrBitmapItor());
}